package com.ddlaw.util;

import java.util.Random;

public class MsgCode {
	/*
	 * 获取一个6位的验证码
	 * @return
	 */
	public static String getValidateCode(){
		Random r = new Random();
		String validateCode = "";
		for (int i = 0; i < 6; i++) {
			int num = r.nextInt(10);
			validateCode+=num;
		}
		return validateCode;
	}
}
